﻿<?
	include "../dbconn.php";
	
	$sql="select pwd from ripple where parent = $num";
	$result = mysql_query($sql, $connect);
	$row = mysql_fetch_assoc($result);
	echo " $pwd // $row[pwd] ";
	if ($pwd == $row[pwd])
	{
		$sql="delete from ripple where num = $ripple_number";
		mysql_query($sql, $connect);
		Header("Location:../index.php?page=$page");
	} else
	  {
	  	echo("
	  	<script>
		window.alert('비밀번호가 틀렸습니다.');
		history.go(-1)
		</script>
			");
			exit;
	   }
	   
	   mysql_close();
?>
        
		